<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>

<html>
  <head>
    <title>网上商店</title>
    <!-- START:stylesheet -->
    <%= stylesheet_link_tag "scaffold", "depot", :media => "all" %>
    <!-- END:stylesheet -->
    <%= javascript_include_tag :defaults %>
  </head>
  <!-- END:jit -->
  <body id="store">
    <div id="banner">
      <img src="/productshop/images/logo.png"/>
      <%= @page_title || "网上商店产品" %>
    </div>
    <div id="columns">
      <div id="side">

        <!-- START:hidden_div -->
        <%#= hidden_div_if(@cart.items.empty?, :id => "cart") %>
        <%#= render(:partial => "cart", :object => @cart) %>

        <!-- END:hidden_div -->
        <%= link_to("首页", :controller => 'store') %><br />
        <%= link_to("管理", :controller => 'products') %><br />
        <a href="#">提问</a><br />
        <a href="#">联系</a><br />
      </div>
      <div id="main">
        <% if flash[:notice] -%>
          <div id="notice"><%= flash[:notice] %></div>
        <% end -%>
        <%= yield :layout %>
      </div>
    </div>
  </body>
</html>
